package com.etc.dao;

import org.springframework.stereotype.Repository;

import com.etc.entity.Employee;
import com.github.pagehelper.Page;

@Repository
public interface EmployeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);
    
    /**
     * //模糊查询 +分页(pageHelper插件)
     * @param keywords
     * @return
     */
    public Page<Employee> getByLike(String keywords);
}